<?php

namespace App\Models\Dynamic;

use App\User;
use Illuminate\Database\Eloquent\Model;

/**
 * 血糖报告打印excel文件记录表模型
 * Class BloodExcelReport
 * @package App\Models\Dynamic
 */
class BloodExcelReport extends Model
{


    protected $table = "tn_blood_excel_report";

    protected $fillable = [
        'id', 'record_id', 'user_id', 'excel_name','excel_url','excel_params','created_at','updated_at'
    ];

    /**
     * 跟userBase表进行模型相关联
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function user()
    {
        return $this->hasOne(User::class, 'id', 'patient_id');
    }

}
